<%@page import="com.neiquan.backstage.pub.bsc.dao.po.Entrepreneur"%>
<%@page import="com.neiquan.backstage.resourec_manage.EntrepreneurService"%>
<%@page import="java.util.List"%>
<%@page import="com.neiquan.backstage.common.CommonService"%>
<%@page import="com.neiquan.backstage.common.util.SpringContextUtils"%>
<%@page import="org.springframework.context.ApplicationContext"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
ApplicationContext appCtx = SpringContextUtils.getApplicationContext();
CommonService commonService = appCtx.getBean(CommonService.class);
String memberId1=request.getParameter("memberId");
int memberId=Integer.parseInt(memberId1);
EntrepreneurService entrepreneurService = appCtx.getBean(EntrepreneurService.class);
List<Entrepreneur> entrepreneurList = entrepreneurService.queryAll(memberId);
pageContext.setAttribute("entrepreneurList", entrepreneurList);
pageContext.setAttribute("memberId", memberId);
%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<meta charset="UTF-8">
	<title>创业服务站</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1.0" />
	<meta name="apple-mobile-web-app-capable" content="yes" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<link rel="stylesheet" href="css/base.css" />
	<link rel="stylesheet" href="css/main.css" />
</head>
<body bgcolor="#f0f0f0">
	<ul class="firm_detail_ul">
		<!--<section>
			 <table class="startup common_bg tc" cellspacing="0" cellpadding="0">
				<%	int a=entrepreneurList.size();
					int b=(a/4)+1;
					if(b%4==0){
						b-=1;
					}
					int c=0;
					for(int i=0;i<b;i++){%>
						<tr>
						<% for(int j=0;j<4&&c<entrepreneurList.size();j++){
							
						%>
							<td>
								<a href="firm_detail.jsp?entrepreneurId=<%=entrepreneurList.get(c).getEntrepreneurId()%>"><img src="<%=entrepreneurList.get(c).getLoge() %>" alt="" /></a>
								<p class="td-p"><%=entrepreneurList.get(c).getName() %></p>
							</td>
						<% 
						c++;
						}
						%>
						</tr>
				<% }%>
			</table> 
		</section>-->
		<c:forEach var="entrepreneur" items="${pageScope.entrepreneurList}">
			<li class="firm_detail">
				<a href="firm_detail.jsp?entrepreneurId=${entrepreneur.entrepreneurId}">
					<img class="fl" src="${entrepreneur.loge}" width="100px" height="100px">
					<p class="fr firm_detail_cont">${entrepreneur.name}</p>
				</a>
			</li>
		</c:forEach>
	</ul>	
</body>
<script src="js/jquery.min.js"></script>
<script src="js/main.js"></script>
<script src="js/responsive.js"></script>
</html>
